<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<jsp:include page="/jsp/header.jsp" />
<jsp:include page="/jsp/footer.jsp" />
<%
	boolean isPatron = Boolean.parseBoolean(request
			.getParameter("isPatron"));
%>
<title>
	<%
		if (isPatron)
			out.write("Find Patron");
		else
			out.write("Find Book");
	%>
</title>
</head>
<body>
	<div class="page2" style="width: 500px; height: 125px">
		<form id="FindBookForm"
			action="${WEB_BASE }jsp/Search/<% if(isPatron) out.write("ViewPatron.jsp"); else out.write("ViewBooks.jsp");%>"
			novalidate="novalidate">
			<table>
				<tr>
					<td><img
						src="${WEB_BASE }images/<% if(isPatron) out.write("Man_Black_64.png"); else out.write("bookmarks_64.png");%>"
						class="img" title="Find" alt="Find" /></td>
					<td><p class="label" style="width: 130px">Accession No:</p></td>
					<td><input type="text" name="<% if(isPatron) out.write("patNo"); else out.write("bookNo");%>" id="AccssNoid"
						class="required" /></td>
					<td><input class="button" type="submit" value="Find" /></td>
				</tr>
			</table>
		</form>
	</div>
	<script>
		$('#FindBookForm').submit(function(){
			doOverlayOpen($(this).attr('action')+'?<% if(isPatron) out.write("patNo"); else out.write("bookNo");%>='+$('#AccssNoid').val());
			return false;
		});
	</script>
</body>
</html>
